<?php
require_once('konfiguration.html');
$files=array("german"=>"top10000de.txt",
"english"=>"top10000en.txt",
"french"=>"top10000fr.txt",
"dutch"=>"top10000nl.txt");
foreach ($files as $key=> $value)
{
   $lines=file($value);
   print "$key";
   foreach($lines as $line)
   { 
      $line_correct=substr($line,0,-1);
	  print $line_correct.'<br>';
      mysql_query("INSERT INTO mostcommonwords VALUES ('$key','$line_correct',$index)");
	  $index+=1;
	  set_time_limit(10);
   
   }

}



?>